package com.zwh.controller;

import com.zwh.api.FeginDemo1Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("fegin-demo2")
public class FeginDemo2Controller {

    @Autowired
    private FeginDemo1Service feginDemo1Service;

    @GetMapping("/hello")
    public String hello() {
        return "fegin-demo2 hello";
    }

    @GetMapping("/gethello")
    public String gethello() {
        return feginDemo1Service.hello();
    }
}
